package com.secxiot.provider.communication.dao;

import com.secxiot.provider.communication.entity.CommunicationAttachment;
import com.secxiot.provider.communication.entity.CommunicationAttachmentExample;
import com.secxiot.provider.communication.vo.CommunicationAttachVo;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunicationAttachmentDao {
	int countByExample(CommunicationAttachmentExample example);

	int deleteByExample(CommunicationAttachmentExample example);

	int deleteByPrimaryKey(Long id);

	int insert(CommunicationAttachment record);

	int insertSelective(CommunicationAttachment record);

	List<CommunicationAttachment> selectByExample(CommunicationAttachmentExample example);

	CommunicationAttachment selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") CommunicationAttachment record,
			@Param("example") CommunicationAttachmentExample example);

	int updateByExample(@Param("record") CommunicationAttachment record,
			@Param("example") CommunicationAttachmentExample example);

	int updateByPrimaryKeySelective(CommunicationAttachment record);

	int updateByPrimaryKey(CommunicationAttachment record);

	List<CommunicationAttachVo> getListByCommunicationId(@Param("communicationId") Long communicationId);

	void deleteByCommunicationId(@Param("communicationId")Long communicationId);
}